package com.foodsafe.service;

import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.ServiceConnection;
import android.os.IBinder;
import android.test.AndroidTestCase;
import android.util.Log;

import com.foodsafe.OthersActivity;
import com.foodsafe.util.DBHelp;
import com.foodsafe.util.GoodInfoManager;

public class NetServiceTest extends AndroidTestCase {
	private NetService netService;
	public void testGetMaxRecordId() throws Exception{
		
		GoodInfoManager service=new GoodInfoManager(this.getContext());
		Log.i("test", "reached.........................");
		DBHelp dbc=new DBHelp(this.getContext());
		
		dbc.startServer();
		System.out.println(service.queryGoods("6923830302165", null));
		dbc.stopServer();
		Log.i("test", "-----------------");
		/*Intent intent = new Intent(getContext(), NetService.class);
		getContext().bindService(intent, conn, Context.BIND_AUTO_CREATE);*/
	}
	
}
